 import FormItemText from './FormItemText.vue'   //文本输入的组件
 import FormItemImage from './FormItemImage.vue'   //图片上传的组件
 import FormItemGoodsImage from './FormItemGoodsImage.vue'   //图片上传的组件

 import SelectNative from './SelectNative.vue'   //籍贯选择的组件


//  统计图
 import CartogramBar from './cartogram/Bar.vue'   //柱状图的组件
 import CartogramLine from './cartogram/Line.vue'   //线形图的组件
 import CartogramPie from './cartogram/Pie.vue'   //饼状图的组件
 import CartogramMap from './cartogram/Map.vue'   //地图的组件



//  定义一个插件  第一个参数是app  第二个参数是配置项
export default function plugin(app:any, options:any){
    // 全局注册组件
    app.component('FormItemText',FormItemText)
    app.component('FormItemImage',FormItemImage)
    app.component('FormItemGoodsImage',FormItemGoodsImage)
    app.component('CartogramBar',CartogramBar)
    app.component('CartogramLine',CartogramLine)
    app.component('CartogramPie',CartogramPie)
    app.component('SelectNative',SelectNative)
    app.component('CartogramMap',CartogramMap)
}